<?php

/**
 * Gère la configuration du arduino 
 */

namespace Acme\DomotiqueBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Entity
 * @ORM\Table(name="room")
 */
class Room
{
    /**
     * @ORM\Id 
     * @ORM\Column(type="integer") 
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    /**
     * @ORM\Column(type="string")
     */
    protected $room_name;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set room_name
     *
     * @param string $roomName
     * @return Room
     */
    public function setRoomName($roomName)
    {
        $this->room_name = $roomName;
    
        return $this;
    }

    /**
     * Get room_name
     *
     * @return string 
     */
    public function getRoomName()
    {
        return $this->room_name;
    }
    public function __toArray()
    {
        foreach($this as $var=>$val)
        {
            $tab[$var] = $val;
        }
        return $tab;
    }
}